export function useColumns() {
  const caigouColumns: TableColumnList = [
    {
      type: "selection",
      align: "left"
    },
    {
      label: "产品图片",
      prop: "pictureUrl",width:70,
      cellRenderer: scope => (
        <el-image style="width: 40px; height: 40px" src={scope.row.pictureUrl} preview-src-list={[scope.row.pictureUrl]} preview-teleported={true} />
      )
    },
    {
      label: "商铺名称",minWidth: 100,showOverflowTooltip:true,
      prop: "shopName"
    },
    {
      label: "店铺id",
      prop: "shopId"
    },
    {
      label: "平台产品名称",
      minWidth: 180,
      showOverflowTooltip:true,
      prop: "title"
    },
    {
      label: "平台产品id",
      prop: "platformProductId"
    },
    {
      label: "平台sku",
      prop: "platformSku"
    },
    {
      label: "订单时间",
      prop: "createDate"
    }
  ];
  return {
    caigouColumns,
  }
}
